﻿using System.Collections.Generic;
using System.Threading.Tasks;
using cmdb.keede.common;
using cmdb.keede.entity;

namespace cmdb.keede.service
{
    public interface IBusinessTopologyService
    {
        Task<BizResult<List<TreeNode>>> GetTreeNodesAsync(int level, int parentId = 0, int bakValue = 0);

        Task<BizResult<List<VirtualHostInfo>>> GetVirtualHostsByAppIdAsync(int applicationId, int pageIndex, int pageSize);
        Task<BizResult<List<VirtualHostInfo>>> SearchVirtualHostsAsync(int applicationId, string innerIP, string outerIP, EnumOperationSystem? os, EnumVirtualHostStatus? status, int pageIndex, int pageSize);
    }
}